package main;

import shapes.ShapesFactory;
import shapes.Sheet;

public class Main {

	static
	{
		try
		{
			Class.forName("shapes.Circle");
			Class.forName("shapes.Square");
		}
		catch (ClassNotFoundException any)
		{
			any.printStackTrace();
		}
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Sheet sh = new Sheet();
		ShapesFactory instance = ShapesFactory.getInstance();
		sh.add(instance.createShape("Circle"));
		sh.add(instance.createShape("Square"));
		sh.drawAll();

	}

}
